package top.vanchor.myblog2back.service;

import top.vanchor.myblog2back.entity.BlogSubscribe;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ding
 * @since 2021-11-12
 */
public interface IBlogSubscribeService extends IService<BlogSubscribe> {

    Integer toStarUser(Integer handleId, Integer targetId);

    Integer toUnStarUser(Integer handleId, Integer targetId);


    /**
     * 获取用户id的所有关注用户id
     * @param userId 发起用户id
     * @return 目标用户ids集合
     */
    List<Integer> getStarIdsByUserId(Integer userId);
}
